package com.example.demo.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Article {

    private Integer id;
    private String title;
    private String content;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm")
    private Date created;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm")
    private Date modified;
    private String categories;
    private String tags;
    private Boolean allowComment;
    private String thumbnail;
}
